package cn.brian.modular.sys.entity;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Tolerate;

import javax.validation.constraints.NotNull;

/**
 * 【A07_用户表】实体类
 * 
 * @author 黄景华
 * @date 2018-03-21 04:24:27
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
public class SysUser {

	private static final long serialVersionUID = 1L;

	@NotNull(message="用户ID不能为空")
	private String userId;

	// 用户姓名
	private String userName;

	private String loginName;

	// 密码
	private String password;

	// 性别
	private String sex;

	// 性别
	private Integer age;

	// 手机号码
	private String tel;

	// 头像文件ID
	private String headFileId;

	// 所属机构ID
	private String orgId;

	//所属角色ID
	private String roleId;

	/**
	 * 用户状态
	 */
	private String status;

	private Integer sortNo;

	private String remark;

    @Tolerate
    public SysUser() {
    }
}
